package com.hpp.filter.utils;

import java.math.BigDecimal;
import java.text.NumberFormat;

public class NumberTest {
	
	public static void main(String[] args) {
		double num1 = 1.46106432404958E15;
        BigDecimal bd1 = new BigDecimal(num1);
        System.out.println(bd1.toPlainString());
        object2Str(num1);
        BigDecimal bd = new BigDecimal(num1);  
        System.out.println(bd.toPlainString());
	}
	
	/**
     * 把科学计数法显示出全部数字
     * @param d
     */
    public static void object2Str(Object d) {
        NumberFormat nf = NumberFormat.getInstance();
        System.out.println(nf.format(d));
    }
}
